<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.min.css">
    
    <title>Document</title>
    <style>
        .mui-content .detail-title h1{  
            font-size: 16px;
            font-weight: normal;          
            color: #333;
            line-height: 30px;
        }
        .detail-content{
            padding: 10px;
            
        }
        .detail-content div{
            padding: 10px 0px;
            border-bottom: 1px solid #ccc;
        }
        .detail-price{
            font-size: 16px;
        }
        .detail-price .now{
            color: #f00;
            font-weight: bold;
            font-size: 20px;
        }
        .detail-price .old{
            color: #ccc;
            text-decoration:line-through;
            padding-left: 10px;
        }
        .detail-item span{
            display: inline-block;
            padding: 5px;
            border: 1px solid #ccc;
            margin: 0 5px 10px 0; 
        }
        .detail-item span.active{
            background: #f00;
            color: #fff;
        }
        .detail-num{
            font-size: 14px;
            
        }
        .detail-num .mui-numbox{
            padding: 0px;
            margin: 10px 0px;
        }
        .detail-btn a{
            display: inline-block;
            padding: 5px 20px;
            width: 50%;
            float: left;
            color: #fff;
            text-align: center;
        }
        .detail-btn a.look-btn{
            background: #FA672D;
        }
        .detail-btn a.add-btn{
            background: #f00;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
	<header class="mui-bar mui-bar-nav my-header">
		<h1 class="mui-title">商品详情页</h1>
    </header>
    <!-- 底部 -->
	<nav class="mui-bar mui-bar-tab my-footer">
		<a class="mui-tab-item mui-active" href="index.html">
			<span class="mui-icon mui-icon-home"></span>
			<span class="mui-tab-label">首页</span>
		</a>
		<a class="mui-tab-item" href="category.html">
			<span class="mui-icon mui-icon-bars"></span>
			<span class="mui-tab-label">分类</span>
		</a>
		<a class="mui-tab-item" href="cart.html">
			<span class="mui-icon fa fa-shopping-cart"></span>
			<span class="mui-tab-label">购物车</span>
		</a>
		<a class="mui-tab-item" href="user.html">
			<span class="mui-icon mui-icon-person"></span>
			<span class="mui-tab-label">会员中心</span>
		</a>
    </nav>
    
	<div class="mui-content detail">
            
	</div>
</body>
<script src="assets/zepto/zepto.min.js"></script>
<script src="./assets/mui/js/mui.min.js"></script>
<script src="assets/artTemplate/template-native.js"></script>
<script src="js/details.js"></script>
<script>
    

</script>
<script id="detailTpl" type="text/template">
    <!-- 轮播图 -->
    <div class="mui-slider">
        <div class="mui-slider-group">
            <%for(var i = 0;i<result.pic.length;i++){%>
                <div class="mui-slider-item">
                    <a href="#">
                        <img src="<%=result.pic[i].picAddr %>" />
                    </a>
                </div>
            <% } %>
        </div>
    </div>
    <div class="detail-content">
        <div class="detail-title">
            <h1><%=result.proName%></h1>
        </div>
        <div class="detail-price">
            价格:<span class="now">￥<%=result.price%></span><span class="old">￥<%=result.oldPrice%></span>
        </div>
        <div class="detail-item">
            尺码:
            <% for (var i = 40 ; i<50;i++){%>
                <span><%=i%></span>
            <% } %>

        </div>
        <div class=" detail-num">
            数量:
            <div class="mui-numbox">
                <!-- "-"按钮，点击可减小当前数值 -->
                <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                <input class="mui-numbox-input" type="number" value="1" />
                <!-- "+"按钮，点击可增大当前数值 -->
                <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
            </div>
            <span>剩余:<%=result.num%>件</span>
        </div>
        <div class="detail-btn mui-clearfix">
            <a href="#" class="look-btn">查看购物车</a>
            <a href="javascript:;" class="add-btn">加入购物车</a>
        </div>
        
    </div>
        
</script>
</html>